<?php
header("Content-type: text/html; charset=utf-8");
require("inc/common.inc.php");
	$pagesize=intval($pagesize);
	if ($pagesize==0){$pagesize=2;}

	if(empty($pageindex)){$pageindex=1;}
    $str=" and isok='1' ";
    $s="";
	

	$table=" mx_yangban ";
	$order=" order by  orderid desc, adddate desc, id desc";
	$column=" * ";
	$biaoid="id";

	$c=$db->listcount($table,$str);

	$list=$db->list1($pageindex,$pagesize,$table,$column,$str,$order,$biaoid);

	if(!is_array($list) or $c==0 and $pageindex==1){
	  echo "|@#page#@|<center><br>暂无信息</center><br>";
	  exit();
	}
	else{
		$nowhavenum=($pagesize*($pageindex-1))+count($list);
		if ($nowhavenum<$c){echo "1";}
		echo "|@#page#@|";
	for($i=0;$i<count($list);$i++){
	?>
		 <ul onclick="ShowFLT_y(<?php echo $list[$i]["id"];?>)">
			<li class="a1"><?php echo $list[$i]["ybname"];?><br />建筑总面积约<?php echo $list[$i]["ybmianji"];?>㎡</li>
			<li class="a2"><img src="images/hx-tb2.jpg" /></li><div class="clear"></div>
		  </ul>
		  <table width="100%" border="0" cellspacing="0" cellpadding="5" id="LM_y<?php echo $list[$i]["id"];?>" style="DISPLAY: none">
  <tr>
    <td width="50%" align="center" bgcolor="#F3F3F3"><a href="yangbanshow.php?id=<?php echo $list[$i]["id"];?>"><div style="background:url(images/hx_2.png) 0 50% no-repeat;width:130px;height:35px;padding-left:50px;line-height:35px;">360°户型展示</div></a></td>

    </tr>
</table>
	<?php
	}
	}
	?>